home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch07 / 07fig12b.wrl < prev    next >
Text File  |  1996-09-23  |  724b  |  45 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Ground
  8.         Shape {
  9.             appearance DEF White Appearance {
  10.                 material Material { }
  11.             }
  12.             geometry Box {
  13.                 size 12.0 0.1 12.0
  14.             }
  15.         },
  16.     # Tree
  17.         Transform {
  18.             translation 0.0 1.0 0.0
  19.             scale       1.0 2.0 1.0
  20.             center      0.0 -1.0 0.0
  21.             children [
  22.             # Trunk
  23.                 Shape {
  24.                     appearance USE White
  25.                     geometry Cylinder {
  26.                         radius 0.5
  27.                         height 2.0
  28.                     }
  29.                 },
  30.             # Branches
  31.                 Transform {
  32.                     translation 0.0 3.0 0.0
  33.                     children Shape {
  34.                         appearance USE White
  35.                         geometry Cone {
  36.                             bottomRadius 2.0
  37.                             height 4.0
  38.                         }
  39.                     }
  40.                 }
  41.             ]
  42.         }
  43.     ]
  44. }
  45.